package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.PropNameMapper;
import com.rongke.model.PropName;
import com.rongke.service.PropNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PropNameServiceImpl
 * @属性名ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class PropNameServiceImpl extends ServiceImpl<PropNameMapper, PropName> implements PropNameService {

    @Autowired
    private PropNameMapper propNameMapper;

    /**
     * @根据条件查找属性名
     * @param propName
     * @return
     */
    @Override
    public List<PropName> selectByCondition(PropName propName) {
        return propNameMapper.selectByCondition(propName);
    }

    @Override
    public List<PropName> selectSpecListByClassifyId(int classifyId) {
        return propNameMapper.selectSpecListByClassifyId(classifyId);
    }
}
